// const tenpay = require('tenpay');
const tenpay = require('vha-tenpay');
const path = require('path');
const { wConfig,cConfig } = require('../config')
const config = {
    appid: wConfig.appID,
    mchid: '1529114461',
    partnerKey: cConfig.mch_key,
    pfx: require('fs').readFileSync(path.resolve(__dirname,'./zhengshu/apiclient_key.pem')),
    notify_url: 'https://dev.qolayapp.cn/notify_url',
    spbill_create_ip: '119.29.24.107'
};
const api = new tenpay(config, true);
module.exports = api;